package org.locker.domain.bo;

import org.locker.common.mybatis.core.domain.BaseEntity;
import org.locker.common.core.validate.*;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;
import org.locker.domain.WechatMpInfo;

/**
 * 系统参数业务对象 lk_wechat_mp_info
 *
 * @author winnie
 * @date 2024-05-21
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = WechatMpInfo.class, reverseConvertGenerate = false)
public class WechatMpInfoBo extends BaseEntity {

    /**
     *
     */
    @NotBlank(message = "不能为空", groups = { EditGroup.class })
    private String id;

    /**
     * 公众号名称
     */
    @NotBlank(message = "公众号名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String name;

    /**
     * AppID
     */
    @NotBlank(message = "AppID不能为空", groups = { AddGroup.class, EditGroup.class })
    private String appId;

    /**
     * AppSecret
     */
    @NotBlank(message = "AppSecret不能为空", groups = { AddGroup.class, EditGroup.class })
    private String appSecret;

    /**
     * 服务器地址
     */
    @NotBlank(message = "服务器地址不能为空", groups = { AddGroup.class, EditGroup.class })
    private String url;

    /**
     * 令牌
     */
    @NotBlank(message = "令牌不能为空", groups = { AddGroup.class, EditGroup.class })
    private String token;

    /**
     * 消息加解密密钥
     */
    @NotBlank(message = "消息加解密密钥不能为空", groups = { AddGroup.class, EditGroup.class })
    private String encodingAesKey;

    /**
     * 状态
     */
    private Long status;

    /**
     * 备注
     */
    private String remark;


}
